var hardpoint = 0;
if keyboard_check_pressed(ord('Z')) 
hardpoint = 0;
if keyboard_check_pressed(ord('X'))
hardpoint = 1;
if keyboard_check_pressed(ord('C'))
hardpoint = 5;
if keyboard_check_pressed(ord('V'))
hardpoint = 3;

var fireside = (hardpoint + objHeroOW.image_index) % 6;
with (instance_create(x+16,y+16,objBullet))
{
    switch(fireside)
    {
        case 0:move_towards_point(x+32,y,10);   break;
        case 1:move_towards_point(x+16,y-24,10);break;
        case 2:move_towards_point(x-16,y-24,10);break;
        case 3:move_towards_point(x-32,y,10);   break;
        case 4:move_towards_point(x-16,y+24,10);break;
        case 5:move_towards_point(x+16,y+24,10);break;
    }
}
